package com.comac.print.component.app.service;

import com.alibaba.cola.dto.Response;
import com.comac.print.component.app.api.SystemService;
import com.comac.print.component.app.cmd.SystemCmd;
import com.comac.print.component.app.command.cmdExe.SystemCmdExe;
import com.comac.print.component.app.command.qryExe.MasterPlateUploadOssQryExe;
import com.comac.print.component.app.command.qryExe.SystemQryExe;
import com.comac.print.component.app.dto.MasterPlateDTO;
import com.comac.print.component.app.dto.SystemDTO;
import com.comac.print.component.app.page.PageResponse;
import com.comac.print.component.app.qry.SystemListQry;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class SystemServiceImpl implements SystemService {

    @Autowired
    private SystemCmdExe systemCmdExe;

    @Autowired
    private SystemQryExe systemQryExe;

    @Override
    public Response saveSystemInformation(SystemCmd systemCmd) {
        return systemCmdExe.saveSystemInformation(systemCmd);
    }

    @Override
    public PageResponse<SystemDTO> qrySystemList(SystemListQry systemListQry) {
        return systemQryExe.qrySystemList(systemListQry);
    }

    @Override
    public Response systemDelete(SystemCmd systemCmd) {
        return systemCmdExe.systemDelete(systemCmd);
    }
}
